<include file="Public:header" />
<div class="main">
	
    <div class="box_tit">
        <h2>提货券订单信息</h2>
    </div>
    <div class="orderinfo">
        <ul>
       	 	<li>货券编号：{$coupon_info.number}</li>
            <li>订单编号：{$vo.order_id}</li>
            <li>订单状态：{$vo.status|getCouponorderStatus}</li>
            <li>订购时间：{$vo.create_time|toDate="Y-m-d H:i:s"}</li>
        </ul>
    </div>
	<div class="orderother">
        <div class="ordertitle">收货信息<neq name="vo.status" value="0">(<a href="{:U('Couponorder/address_edit',array('id'=>$vo['id']))}">修改</a>)</neq></div>
        <div class="ordertext">姓名：{$vo.name}</div>
        <div class="ordertext">手机：{$vo.mobile}</div>
        <div class="ordertext">地址：{$vo.province|getRegion}&nbsp;{$vo.city|getRegion}&nbsp;{$vo.town|getRegion}&nbsp;{$vo.address}</div>
        <div class="ordertext">备注：{$vo.remark}</div>
    </div>
    
    <neq name="vo.status" value="0">
    <div class="orderother">
        <div class="ordertitle">订单操作</div>
        <div class="ordertext1">
        	<if condition="$vo.status eq 2">
            	<a href="{:U('Couponorder/over',array('id'=>$vo['id']))}">审核</a>
            <elseif condition="$vo.status eq 3" />
            	<form method='post' id="form1" name="form1" action="{:U('Couponorder/check')}"  enctype="multipart/form-data">
            		<ul class="sendform">
            		<li>物流名称：
            		<select name="deliverytype" id="deliverytype">
                     <volist name="delivery_list" id="mvo">
                         <if condition="$key eq $vo['deliverytype']">
                             <option value="{$key}" selected="selected">{$mvo}</option>
                         <else />
                         <option value="{$key}">{$mvo}</option>
                         </if>
                     </volist>
                 	</select>
            		</li>
	            	<li>物流单号： <input type="text" class="ipt4" id="deliveryno" name="deliveryno" value="{$vo.deliveryno}" /></li>
	            	<li>发货备注： <textarea name="userremark" style="width:300px; height:60px;">{$vo.userremark}</textarea></li>
	            	<li><input type="submit" name="submit" value="确认发货" /><input type="hidden" name="id" value="{$vo.id}" /></li>
	            	</ul>
            	</form>
            <elseif condition="$vo.status eq 1" />
				<div class="sendok">
					<p>操作：{$vo.status|getCouponorderStatus}</p>
                    <form method='post' id="form1" name="form1" action="{:U('Couponorder/check_edit')}"  enctype="multipart/form-data">
                        <ul class="sendform">
                        	<li>物流名称：
		            		<select name="deliverytype" id="deliverytype">
		                     <volist name="delivery_list" id="mvo">
		                         <if condition="$key eq $vo['deliverytype']">
		                             <option value="{$key}" selected="selected">{$mvo}</option>
		                         <else />
		                         <option value="{$key}">{$mvo}</option>
		                         </if>
		                     </volist>
		                 	</select>
		            		</li>
                       	 	<li>物流单号： <input type="text" class="ipt4" id="deliveryno" name="deliveryno" value="{$vo.deliveryno}" /> &nbsp;&nbsp;<notempty name="vo.deliveryno"><a href="{$vo.deliverytype|kuaidi100=$vo['deliveryno']}" id="deliverysearch" target="_blank" >（查询物流）</a></notempty></li>
        	            	<li>发货备注： <textarea name="userremark" style="width:300px; height:60px;">{$vo.userremark}</textarea></li>
                            <li>
                                <input type="submit" name="submit" value="修改备注" />
                                <input type="hidden" name="id" value="{$vo.id}" />
                            </li>
                        </ul>
                    </form>
            	</div>
            </if>
        </div>
    </div>
	</neq>
	
</div>

<include file="Public:footer" />